package com.tuanzi.loan.web.lazy.statistics;

import org.springframework.data.domain.Page;

import com.tuanzi.loan.business.service.statistics.UnionLoginStatService;
import com.tuanzi.loan.core.lazy.BaseLazyDataModel;
import com.tuanzi.loan.core.util.SpringContextHolder;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.statistics.UnionLoginStatRequest;
import com.tuanzi.loan.vo.response.statistics.UnionLoginStatResponse;

public class UnionLoginStatLazyDataModel extends BaseLazyDataModel<UnionLoginStatRequest, UnionLoginStatResponse> {

	private static final long serialVersionUID = -662821921443302213L;

	// 获取service
	private UnionLoginStatService unionLoginStatService = SpringContextHolder.getBean(UnionLoginStatService.class);

	public UnionLoginStatLazyDataModel(UnionLoginStatRequest request) {
		super(request);
	}

	@Override
	protected Page<UnionLoginStatResponse> doLoad(PageSearcher<UnionLoginStatRequest> pageSearcher) {
		return unionLoginStatService.list(pageSearcher);
	}

}
